home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / holidays.sql < prev    next >
Text File  |  2000-05-12  |  1KB  |  27 lines

  1. /* RCSVER $Id: holidays.sql,v 1.4 1999-02-24 14:15:19-06 randy CURRENT $ */
  2. /* *************************************************************************
  3. *        Copyright (C) 1998, Agent Systems, Inc. All Rights Reserved.
  4. *
  5. * Name:        holidays.sql
  6. * Date:        12/28/1998
  7. * memo:        Randy Wood
  8. * Description:    Create the holidays table. THis table contains holiday
  9. *        definitions and associated faresets for automatic fareset
  10. *        switchover.
  11. * Changes:
  12. ************************************************************************* */
  13. CREATE TABLE holidays
  14. (
  15.     holiday    DATE,             /* Date of holiday */
  16.     beg_time VARCHAR2(5),        /* beginning time for this fareset */
  17.     end_time VARCHAR2(5),        /* ending time for this fareset */
  18.     fareset    NUMBER(38),        /* fareset to use */
  19.     config_num    NUMBER(38)
  20.         CONSTRAINT ref_holidays2 REFERENCES configset(num)
  21.         ON DELETE CASCADE,
  22.     CONSTRAINT fk_holidays FOREIGN KEY (fareset, config_num)
  23.         REFERENCES faresets(id, config_num) ON DELETE CASCADE,
  24.     CONSTRAINT pk_holidays 
  25.         PRIMARY KEY (holiday, beg_time, end_time, config_num)
  26. );
  27.